package com.baizhi.dao;

import com.baizhi.entity.CmfzArticle;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2019/4/9 0009.
 */
@Repository
public interface CmfzArticleDao extends BaseMapper<CmfzArticle> {
    List<CmfzArticle> queryAll(@Param("start") Integer start, @Param("rows") Integer rows);

    Integer queryCount();

    void add(CmfzArticle cmfzArticle);

    void frozenByGuruId(@Param("guruId") Integer guruId);

    void unFrozenByGuruId(@Param("guruId")Integer guruId);
}
